package ch1;

public class Zuoye03097 {
    public static void main(String[] args) {
        int a=0,b;
        for (int i=1;i<=10000;i++){
            for (b=2;i%b!=0;b++);
            if (b*b>i){
                System.out.println(i);
                a++;
            }
        }
        System.out.println("总共有"+a+"个质数");
}
}